#ifndef MAP_H
#define MAP_H

#include <QList>
#include <QDataStream>
#include "entity.h"

class Map
{
    //friend QDataStream &operator<<(QDataStream &, const Map &);
    friend QDataStream &operator>>(QDataStream &, Map &);

public:
    Map();
    QList<Entity*> at(QPoint) const;
    bool loadFromFile(QString);

private:
    QVector< QVector< QList<Entity*> > > p_map;

};

//QDataStream &operator<<(QDataStream &, const Map &);
QDataStream &operator>>(QDataStream &, Map &);

#endif // MAP_H
